package cn.iune.erp.inventory;


import java.sql.SQLException;
import java.util.List;

import com.alibaba.fastjson.JSONObject;

public interface IFileStorageDao {
	
	public void insert(FileStorage obj);
	
	public void delete(String fID);

	public FileStorage update(FileStorage obj) ;

	public List<FileStorage> getAll();
	
	public FileStorage getByID(String fID);
	
//	public FileStorage getByNo(String storageFullNo, String enterpriseNo);
	
//	public FileStorage getStorageByNo(String storageNo, String enterpriseNo);
	
	public int getRootCount();

	public List<FileStorage> getRoots(String enterpriseNo);

	public int getChildCount(String fParent);

	public List<FileStorage> getChilds(String fParent);

	public List<FileStorage> getChildren(String fParent);

	List<FileStorage> getByFactoryID(String factoryID, String enterpriseNo);

//	void delete(String fID, String userId);

	JSONObject query(JSONObject data) throws SQLException ;

	JSONObject create(JSONObject param);


}
